package zsh.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.stereotype.Controller;

@Configuration
@ComponentScan(value = "zsh",excludeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION, value = {Controller.class, RestController.class}),
        @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = SpringMvcConfig.class )
})
@EnableTransactionManagement
public class SpringConfig {
}
